#ifndef _UDPDATAGRAM_H_
#define _UDPDATAGRAM_H_

#include <netinet/in.h>

/// class UdpDatagram - 
class UdpDatagram {
  // Attributes
public:
  int source_port;
  int destination_port;
  char * buffer;
  int length;
  long toa; //time of arrival
  // Operations
public:
//  bool isChecksumValid ();
  UdpDatagram(char * buffer, int length,long toa, sockaddr * client, sockaddr * server);
};


#endif
